package com.ysyx.ysyx_admin.service.impl;

import com.ysyx.ysyx_admin.mapper.PassengerPojoMapper;
import com.ysyx.ysyx_admin.pojo.PassengerPojo;
import com.ysyx.ysyx_admin.service.PassengePojoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lenovo
 * @description 针对表【passenger_inf(乘客信息表)】的数据库操作Service实现
 * @createDate 2023-04-18 10:09:36
 */
@Service
public class PassengerPojoServiceImpl
        implements PassengePojoService {

    @Autowired
    private PassengerPojoMapper passengerPojoMapper;

    @Override
    public List<PassengerPojo> showGoods(PassengerPojo passengerPojo) {
        List<PassengerPojo> passengerPojos = passengerPojoMapper.showGoods(passengerPojo);
        return passengerPojos;
    }

    @Override
    public int passengerCount() {
        int num = passengerPojoMapper.passengerCount();
        return num;
    }
}




